const { testFc, name } = require('./index.js');

describe(name, () => {
  test('测试用例1', () => {
    expect(testFc([3, 2, 2, 3], 3)).toBe(2);
  });

  test('测试用例2', () => {
    expect(testFc([0, 1, 2, 2, 3, 0, 4, 2], 2)).toBe(5);
  });
});
